<?php 
  Redux::setSection( $opt_name, array(
    'title'            => __( '布局样式', 'ifan_theme' ),
    'id'               => 'styleid',
    'customizer_width' => '500px',
    'icon'             => 'el el-th-large',

) );

// 字体元素设置项目
Redux::setSection( $opt_name, array(
    'title'            => __( '字体元素', 'ifan_theme' ),
    'id'               => 'p_font',
    'customizer_width' => '300px',
    'subsection'       => true,
    // 'icon'             => 'el el-font',
    'fields'            =>array(
        
        array(
            'id'       => 'main-color-rgba',
            'type'     => 'color_rgba',
            'title'    => esc_html__( '主题主色', 'ifan_theme' ),
            'subtitle' => esc_html__( '主色调,可选透明度.', 'ifan_theme' ),
            'default'  => array(
                'color' => '#7e33dd',
                'alpha' => '.8',
            ),
            'mode'     => 'color',
            'validate' => 'colorrgba',

            'options'       => array(
                    'show_input'                => true,
                    'show_initial'              => true,
                    'show_alpha'                => true,
                    'show_palette'              => true,
                    'show_palette_only'         => false,
                    'show_selection_palette'    => false,
                    'max_palette_size'          => 5,
                    'allow_empty'               => true,
                    'clickout_fires_change'     => false,
                    'choose_text'               =>  esc_html__( '确认', 'ifan_theme' ),
                    'cancel_text'               => esc_html__( '取消', 'ifan_theme' ),
                    'show_buttons'              => true,
                    'use_extended_classes'      => true,
                    // 'palette'                   => null,  // show default
                    'input_text'                => esc_html__( '请选择颜色.', 'ifan_theme' ),
                    'palette' => array(
                        array("#ffffff" ),
                        array("#222222" ),
                        array("#efefe7" ),
                        array("#0066cc" ),
                        array("#9cbd5a" ),
                        array("#8463a5" ),
                        array("#f79442" ),
                    ),
                ), 
                
            
        ),
        array(
            'id'       => 'second-color-rgba',
            'type'     => 'color_rgba',
            'title'    => esc_html__( '主题次色', 'ifan_theme' ),
            'subtitle' => esc_html__( '次色调,可选透明度.', 'ifan_theme' ),
            'default'  => array(
                'color' => '#7e33dd',
                'alpha' => '1',
            ),
            'mode'     => 'color',
            'validate' => 'colorrgba',

            'options'       => array(
                    'show_input'                => true,
                    'show_initial'              => true,
                    'show_alpha'                => true,
                    'show_palette'              => true,
                    'show_palette_only'         => false,
                    'show_selection_palette'    => false,
                    'max_palette_size'          => 5,
                    'allow_empty'               => true,
                    'clickout_fires_change'     => false,
                    'choose_text'               =>  esc_html__( '确认', 'ifan_theme' ),
                    'cancel_text'               => esc_html__( '取消', 'ifan_theme' ),
                    'show_buttons'              => true,
                    'use_extended_classes'      => true,
                    // 'palette'                   => null,  // show default
                    'input_text'                => esc_html__( '请选择颜色.', 'ifan_theme' ),
                    'palette' => array(
                        array("#ffffff" ),
                        array("#222222" ),
                        array("#efefe7" ),
                        array("#184a7b" ),
                        array("#9cbd5a" ),
                        array("#8463a5" ),
                        array("#f79442" ),
                    ),
                ), 
                
            
        ),


    )
) );
// 页头设置项目
Redux::setSection( $opt_name, array(
    'title'            => __( '页头设置', 'ifan_theme' ),
    'id'               => 'header',
    'customizer_width' => '500px',
    'subsection'       => true,
    // 'icon'             => 'el el-laptop',
    'fields'            =>array(
        array(
            'id'      => 'diy_header',
            'type'    => 'textarea',
            'title'   => __( '头部自定义代码', 'ifan_theme' ),
            'desc'     => __( '', 'ifan_theme' ),
            'default' => '',
            'subtitle' => __( '可以放置图片或者是广告，支持HTML代码', 'ifan_theme' ),
            'allowed_html' => array(
                'a'      => array(
                    'href'  => array(),
                    'title' => array()
                ),
                'br'     => array(),
                'em'     => array(),
                'strong' => array()
            )
        ),

    )
) );
// 轮播图设置项目
Redux::setSection( $opt_name, array(
    'title'            => __( '轮播图', 'ifan_theme' ),
    'id'               => 'banner',
    'customizer_width' => '500px',
    'subsection'       => true,
    // 'icon'             => 'el el-laptop',
    'fields'            =>array(
        array(
            'id'      => 'diy_header',
            'type'    => 'textarea',
            'title'   => __( '头部自定义代码', 'ifan_theme' ),
            'desc'     => __( '', 'ifan_theme' ),
            'default' => '',
            'subtitle' => __( '可以放置图片或者是广告，支持HTML代码', 'ifan_theme' ),
            'allowed_html' => array(
                'a'      => array(
                    'href'  => array(),
                    'title' => array()
                ),
                'br'     => array(),
                'em'     => array(),
                'strong' => array()
            )
        ),

    )
) );
// 页脚设置项目
Redux::setSection( $opt_name, array(
    'title'            => __( '页脚设置', 'ifan_theme' ),
    'id'               => 'footer',
    'customizer_width' => '500px',
    'subsection'       => true,
    // 'icon'             => 'el el-laptop',
    'fields'            =>array(
        array(
            'id'      => 'diy_footer',
            'type'    => 'textarea',
            'title'   => __( '头部自定义代码', 'ifan_theme' ),
            'desc'     => __( '', 'ifan_theme' ),
            'default' => '',
            'subtitle' => __( '可以放置图片或者是广告，支持HTML代码', 'ifan_theme' ),
            'allowed_html' => array(
                'a'      => array(
                    'href'  => array(),
                    'title' => array()
                ),
                'br'     => array(),
                'em'     => array(),
                'strong' => array()
            )
        ),

    )
) );

// 首页设置项目
Redux::setSection( $opt_name, array(
    'title'            => __( '首页设置', 'ifan_theme' ),
    'id'               => 'index',
    'customizer_width' => '500px',
    // 'icon'             => 'el el-home',
    'subsection'       => true,
) );
// 列表设置项目
Redux::setSection( $opt_name, array(
    'title'            => __( '列表设置', 'ifan_theme' ),
    'id'               => 'list',
    'customizer_width' => '500px',
    // 'icon'             => 'el el-edit',
    'subsection'       => true,
) );

// 侧边栏设置项目
Redux::setSection( $opt_name, array(
    'title'            => __( '侧边栏设置', 'ifan_theme' ),
    'id'               => 'sidebar',
    'customizer_width' => '500px',
    // 'icon'             => 'el el-edit',
    'subsection'       => true,
) );

// 客服设置项目
Redux::setSection( $opt_name, array(
    'title'            => __( '悬浮客服设置', 'ifan_theme' ),
    'id'               => 'csd',
    'customizer_width' => '500px',
    // 'icon'             => 'el el-edit',
    'subsection'       => true,
) );
?>